//  获取地址栏中的地址
function getSearch(){
  var search = location.search;
  search=decodeURI(search)
  search = search.slice(1);
  var arr = search.split('&');
  var obj={};
  arr.forEach(function(v,i){
    console.log();
    console.log();
    var key = arr[i].split('=')[0];
    var value = arr[i].split('=')[1];
    obj[key] = value;
  })
  return obj
}